package com.mkvld.appietijdenv2.data;

import java.util.Arrays;
import java.util.Iterator;

public class YearShifts implements Iterable<PeriodShifts> {
	private PeriodShifts[] shifts;
	
	public YearShifts() {
		shifts = new PeriodShifts[13];
		for (int i = 0; i < 13; i++)
			shifts[i] = new PeriodShifts();
	}
	
	public void add(Shift shift) {
		shifts[shift.getWeek() / 4].add(shift);
	}

	@Override
	public Iterator<PeriodShifts> iterator() {
		return Arrays.asList(shifts).iterator();
	}
	
	
}
